package com.southwind.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.southwind.entity.Customer;
import com.southwind.servise.CustomerService;

@RestController
@RequestMapping("/customer")
public class CustomerController {
@Autowired
CustomerService service;

//根据id查询customer（客户） 和购买的商品goods
@RequestMapping("/findById/{id}")
public Customer findById(@PathVariable("id") long id) {
	return service.findById(id);
	}
}
